package com.jcl.recruit.user.service;

import com.jcl.recruit.user.logic.UserExternalAccessLogic;
import com.jcl.recruit.user.model.UserExternalAccess;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserExternalAccessService
 * @Description TODO
 * @Author yyliu
 * @Date 2018/10/19 15:53
 * @Version 1.0
 **/
@Service
public class UserExternalAccessService {

    @Autowired
    private UserExternalAccessLogic userExternalAccessLogic;

    public UserExternalAccess getUserExternalAccessByUserId(String userId, String category){

        return userExternalAccessLogic.findOneByUserId(Integer.valueOf(userId), category);
    }

    public List<UserExternalAccess> findList(String category, Integer... status) {
        return userExternalAccessLogic.findList(category, status);
    }
}
